<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="com.sh_lianjing.web.el.EL"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!-- S 已选中的 -->
<div class="col-lg-12">
	<div class="panel panel-success" com="myDataUpdate" access="${RootUrl}${removeModuleUrl}" bindAfterTo="" >
		<div class="panel-heading">
			<label>选择的权限</label>
		</div>
		<div class="panel-body bg-success">
			<!-- S 组 -->
			<c:forEach items="${selected}" var="group">
			<div class="col-lg-12">
				<div class="panel panel-default">
					<div class="panel-heading checkbox">
					    <label>
					    	<input type="checkbox" onchange="js_checked(this)"/> ${group.comment}[组])
					    </label>
					    <div class="btn btn-danger" com-fire="myDataUpdate">移除</div>
					</div>
					<div class="panel-body">
						<!-- 模块 -->
						<c:forEach items="${group.modules}" var="module">
						<div class="col-lg-12 js_module">
							<div class="checkbox" >
							    <label>
							      	<input type="checkbox" name="groupName_moduleNames" value="${group.name}-${module.name}"/> 
							      	<a href="javascript:void(0)" 
							      	 onclick="embedsIsContainsOperate_fun(this, true)" 
							      	 src='${RootUrl}${showActionUrl}?groupName_moduleName=${group.name}-${module.name}&submitActionUrl=${removeActionUrl}&isSelected=true' 
							      	 popupWidth="700" popupHeight="300"
							      	> ${module.comment}[模块]</a>
							    </label>
							</div>
						</div>
						</c:forEach>
					</div>
				</div>
			</div>
			</c:forEach>
			<!-- E 模块 -->
		</div>
	</div>
</div>
<!-- E 已选中的 -->